$(function () {
    var form = new xhForm($('#xh_form'));
    form.parse();
    if(info != null){
        form.fill(info);
    }
    form.bindRequired($('#bt_modal_confirm',parent.document));
    $('#bt_modal_confirm',parent.document).click(function () {
        form.submit('coop/saveContact',{},function (res) {
            window.top.xhTop.showSuccess(res.msg);
            window.top.xhTop.getActiveFrame().frames['tabFrame']['contactFrame'].obj.dataGrid.reload();
            window.top.xhTop.closeModal();
        })
    })

});
